|
|
|
|
|
|
|
Figure 14.9
Comparing approximations for two data sets. |
|
|
|
|
|
|
|
|
The Hi-Lo algorithm is a specialized technique for performing hidden surface removal for simple surfaces. By removing hidden surfaces from a picture, you can make it more realistic and easier to understand. |
|
|
|
|
|
|
|
|
The basic idea behind the Hi-Lo algorithm is to draw the bent rectangles that make up the surface in order, starting with the areas closest to the center of projection, and working back toward the furthest. |
|
|
|
|
|
|
|
|
Suppose you want to draw a surface like the one shown in Figure 14.10. In this picture, the center of projection lies between the positive X and Z axes. The direction of projection points back toward the origin. With the center of projection in this position, the edges of the surface with the largest X and Z values contain points that are relatively close to the |
|
|
|
|
|
|
|
|
Figure 14.10
The front edges of a surface (heavy lines) are not obscured by the rest of the surface. |
|
|
|
|
|